<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopServiceTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_service', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('shop_id');//店铺ID
            $table->string('service_type',16);//服务类型
            $table->string('type',16);//类型来源
            $table->timestamp('start_times');//开始时间
            $table->timestamp('end_times')->nullable();//结束时间
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('shop_service');
    }
}
